package com.terrynoya.fight.evaluation
{
	public class ExpressionRunner
	{
		public function ExpressionRunner()
		{
			
		}
		
		public static function excuteAsNumber(node:Expression,data:Object):Number
		{
			if(node == null)
			{
				return 0;
			}
			var rlt:Number = excute(node,data);
			return rlt;
		}
		
		public static function excute(node:Expression,data:Object):*
		{
			var rlt:* = node.excute(data);
			return rlt;
		}
	}
}